function show(num1:number,name:string){
    let res:string = num1+name
    
}

// 函数签名
function show2(user:{id:number},students:Array<number>){
    console.log(user.id);
    
}
show2({id:1},[1,2,3])

function show3(num1:number,...args:number[]){
    console.log(num1); //1
    console.log(args); //2,3,4,5
    
    
}
show3(1,2,3,4,5,6)


// 函数的返回值
function show4(num1:number,num2:number):string{
    return num1+num2+""
}
const res:string = show4(10,20)

function show5(num1:number,num2:number):void{
    console.log(num1+num2);
    
}
show5(1,2)

function show6(num1:number,num2:number):number[]{
    console.log(num1+num2);
    let arr:number[] = []
    arr.push(num1)
    arr.push(num2)
    return arr
    
}
const res3:number[] = show6(1,4)

function show7(fun1:Function):void{
    fun1()
}
// show7()


// 暴露一个空的对象,目的将当前ts文件设置模块化开发
export {}